<section class="content-header">
    <h1>
        菜单管理
    </h1>
    <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
        <li class="active">菜单信息</li>
    </ol>
</section>

<section class="content">
    <div class="row">
        <div class="box box-success">
            <div class="box-header with-border">
                <h3 class="box-title">菜单信息</h3>
            </div>
            <form role="form" class="validator_form" action="{:url('/Index/Menu/edit')}" id="defaultForm" method="post">
                <input type="hidden" name="id" value="{$info.id?=$info.id}">
                <div class="box-body">
                    <div class="form-group">
                        <label>菜单名称</label>
                        <input type="text" name="title" class="form-control" id="title" required placeholder="请输入新闻标题" value="{$info.title?=$info.title}">
                    </div>
                    <div class="form-group">
                        <label>上级菜单</label>
                        <select class="form-control select2" name="p_id">
                            <option value="">请选择</option>
                                {volist name="menu_list" id="vo" }                       
                                <option value="{$vo['id']}" {$vo['id']==$info['p_id']?'selected="selected"':''}>{$vo['title']}</option>
                                {/volist}                           
                        </select>
                    </div>
                    <div class="form-group">
                        <label>菜单URL</label>
                        <input type="text" name="url" class="form-control" id="url" placeholder="请输入菜单URL" value="{$info.url?=$info.url}">
                    </div>
                    <div class="form-group">
                        <label>菜单类型</label>
                        <select class="form-control" name="type" required> 
                                    <option value="">请选择</option>
                                    {volist name="menu_type" id="vo" }                       
                                    <option value="{$vo['m_value']}" {$vo['m_value']==$info['type']?'selected="selected"':''}>{$vo['m_name']}</option>
                                    {/volist}                             
                                </select>
                    </div>
                    <div class="form-group">
                        <label>排序</label>
                        <input type="text" name="sort" class="form-control" id="sort" placeholder="数值越大越靠前" value="{$info.sort?=$info.sort}">
                    </div>

                </div>
                <div class="box-footer">
                    <button type="submit" class="btn btn-primary">Submit</button>
                </div>

        </div>

        </form>
        <!-- /.box-body -->
    </div>
    </div>
</section>